#import "HelpVC.h"

@implementation HelpVC
@synthesize prevButton;
@synthesize nextButton;

-(IBAction)menuButtonPressed: (id)sender
{
	NSLog(@"Menu button pressed!");
	[self dismissModalViewControllerAnimated:YES];
}
 
-(IBAction)prevButtonPressed: (id)sender
{
	NSLog(@"Prev button pressed!");
	if (imageView.image == [UIImage imageNamed: @"help4.png"])
	{
		UIImage *img = [UIImage imageNamed: @"help3.png"];
		[imageView setImage:img];
		self.nextButton.enabled = TRUE;
	}
	else if (imageView.image == [UIImage imageNamed: @"help3.png"])
	{
		UIImage *img = [UIImage imageNamed: @"help2.png"];
		[imageView setImage:img];
	}
	else if (imageView.image == [UIImage imageNamed: @"help2.png"])
	{
		UIImage *img = [UIImage imageNamed: @"help1.png"];
		[imageView setImage:img];
		self.prevButton.enabled = FALSE;
	}
	else
	{
		UIImage *img = [UIImage imageNamed: @"help1.png"];
		[imageView setImage:img];
	}
}	
 
-(IBAction)nextButtonPressed: (id)sender
{
	NSLog(@"Next button pressed!");
	if (imageView.image == [UIImage imageNamed: @"help1.png"])
	{
		UIImage *img = [UIImage imageNamed: @"help2.png"];
		[imageView setImage:img];
		self.prevButton.enabled = TRUE;
	}
	else if (imageView.image == [UIImage imageNamed: @"help2.png"])
	{
	 UIImage *img = [UIImage imageNamed: @"help3.png"];
		[imageView setImage:img];
	}
	else if (imageView.image == [UIImage imageNamed: @"help3.png"])
	{
		UIImage *img = [UIImage imageNamed: @"help4.png"];
		[imageView setImage:img];
		self.nextButton.enabled = FALSE;
	}
	else
	{
		UIImage *img = [UIImage imageNamed: @"help4.png"];
		[imageView setImage:img];
	}
 }

/*
 // The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
 - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
 if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
 // Custom initialization
 }
 return self;
 }
 */


 //Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad 
{
	self.prevButton.enabled = FALSE;
	self.nextButton.enabled = TRUE;
	[super viewDidLoad];
}


/*
 // Override to allow orientations other than the default portrait orientation.
 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
 // Return YES for supported orientations
 return (interfaceOrientation == UIInterfaceOrientationPortrait);
 }
 */

- (void)didReceiveMemoryWarning {
	// Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
	
	// Release any cached data, images, etc that aren't in use.
}

- (void)viewDidUnload {
	// Release any retained subviews of the main view.
	// e.g. self.myOutlet = nil;
}


- (void)dealloc {
    [super dealloc];
}

@end
